package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.mapper.master.enums.DriverRegionServiceArrangementCategory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 司机区域安排表
 * </p>
 *
 * @author Dell
 * @since 2021-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "DriverRegionServiceArrangement对象", description = "司机区域安排表")
@Accessors(chain = true)
public class DriverRegionServiceArrangement implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "司机区域ID")
    private Long driverRegionId;

    @ApiModelProperty(value = "0:driver_mark[司机评价分],1:grab_call_weight[司机抢单权重],2:payment_rate_pass[免手续费配置],3:close_automatic_ride_grab[关闭司机自动抢单配置]")
    private DriverRegionServiceArrangementCategory serviceCategory;

    @ApiModelProperty(value = "0:未开通,1:开通")
    private Boolean isOpen;

    @ApiModelProperty(value = "具体配置")
    private String detailSpecification;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;


}
